<style type="text/css">
.d{text-align:center;}
.d_1{padding-top:30px;display: inline-block;text-align:left;}
.d_1 form p{margin-bottom:20px;}
.d_1 form input,.d_1 form span{line-height:20px;}
.d_1 form input{height:20px;}
.d_1 form span{color:#777;margin-left:10px;}
.d_1 form span.ps{margin:5px 0 0 60px;display:inline-block;}
.d_1 form button{background:orange;border:medium none;padding:0 20px;line-height:25px;margin-left:60px;cursor:pointer;}
.d_2{margin-top:30px;display:none;}
.d_2 p{line-height:30px;}
#url,.d_1 form span.ps{width:300px;}
#url.grey{color:grey;}
</style>
<script type="text/javascript">
function sub(){
	var res=$.ajax({url:"call/soap.php?url="+$("#url").val()+($("#dcode").length?"&dcode="+$("#dcode").val():""),async:false}).responseText;
	if(res=="ok"){
		document.forms[1].submit();
	}
	else{alert(res);}
}
function account(acc,ps){
	$("#d_2").show();
	$("#acc").html(acc);
	$("#ps").html(ps);
}
</script>
<div class="r_content">
		 <h3 class="mc_title">
	
		<span class="mctit_1 notcur"><a href="soap.html"><span class="mctit_2">回调地址</span></a></span>
		<span class="mctit_1 "><a href="Synchronous.html"><span class="mctit_2">先行同步</span></a></span>
	</h3>
	<div class="d">
		<div class="d_1">
			<iframe name="ifr" style="display:none;"></iframe>
		  <form action="soap.php" name="soap" target="ifr">
		<?	if(!$url){?>
			<p><label for="dcode">接口编码：</label><input type="text" name="dcode" id="dcode" /><span>我们之前告知您的接口编码</span></p>
		<?	}?>
			<p>
				<label for="url">回调地址：</label><input type="text" name="url" id="url" value="<?=$url?>"/>
				<br />
				<span class="ps">回调地址请不要带有任何参数,且需要输出纯文本"success"作为验证。</span>
			</p>
			<button onclick="sub()" type="button"><?=$btn?></button>
		  </form>
		<? if ($url) { ?>
			<div >
				<p><b>账号：</b><span id="acc"><?=$account?></span></p>
				<p><b>密码：</b><span id="ps"><?=$res?></span></p>
			</div>	
		<? } ?>
			<div class="d_2" id="d_2">
				<p><b>账号：</b><span id="acc">100019</span></p>
				<p><b>密码：</b><span id="ps">jjl4yk11f82ce6c0f33a5c003f2fec56</span></p>
			</div>
		</div>
	</div>
	</br>
	<hr/>
	

		<span class="mctit_1 "><input type="submit" class="tongbubtn tongbubtn2" value="先行同步"><span class="mctit_2"></span></a></span>
	
</div>
</div>